#ifndef _C_GL_DEPTH_STENCIL_VIEW_H_
#define _C_GL_DEPTH_STENCIL_VIEW_H_

#include "../interface/I_api_DepthStencilView.h"

class C_gl_DepthStencilView : public I_api_DepthStencilView
{
protected:
	friend class C_gl_Device;

	int	m_Id;

	C_gl_DepthStencilView(I_api_Resource * pResource, const S_api_DepthStencilView_Desc * pDesc, I_api_Device * pDevice) 
		: I_api_DepthStencilView(pResource, pDesc, pDevice)
	{
		m_Id = *((int *)pResource->Get());
	}
public:
	~C_gl_DepthStencilView() { m_Id = 0; }

	virtual	void	*	Get() { return &m_Id; }
};

#endif